package com.sinai.mshab.client.widgets;

import com.google.gwt.user.client.ui.HTML;

/**
 * This class creates an ordered list out of a string array.
 * 
 * @author serge
 * 
 */
public class OrderedList extends HTML {

	/**
	 * Creates an HTML object with an ordered list.
	 * 
	 * @param values
	 *            the values to use in the list.
	 */
	public OrderedList(String[] values) {
		super();
		String html = "<ol>";
		for (int i = 0; i < values.length; i++) {
			html += "<li>" + values[i] + "</li>";
		}
		html += "</ol>";
		this.setHTML(html);
	}
}
